<?php

?>
<html>
<head><meta charset="utf-8" />

</head>
<body>
<?php

    echo '<pre>';
    print_r($_COOKIE);
    echo '<pre/>';
    unset($_COOKIE['name']);
echo '<pre>';
print_r($_COOKIE);
echo '<pre/>';
    if( isset($_COOKIE['username'])&& $_COOKIE['username']!="" ){

?>

<form method="post" action="process.php">
    <table>
        <tr>
            <td>username</td>
            <td><input type="text" name="username" value="<?php echo $_COOKIE['username'];?>"></td>
        </tr>
        <tr>
            <td>Password</td>
            <td><input type="password" name="password" value="<?php echo $_COOKIE['password']?>"></td>
        </tr>
        <tr>
            <td>Save info</td>
            <td><input type="checkbox" name="save" checked></td>
        </tr>
        <tr>
            <td><input type="submit" name="submit" value="Sử lý"></td>
        </tr>
    </table>
</form>
<?php } ?>
</body>

</html>